package com.cysion.study.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.cysion.study.ktbox.base.BaseAdapter
import com.cysion.study.ktbox.base.BaseViewHolder
import com.cysion.study.R
import com.cysion.study.entity.BankListEntity

class BankListAdapter(mEntities: MutableList<BankListEntity>, mContext: Context) :
    BaseAdapter<BankListEntity>(mEntities, mContext) {

    companion object {

        //点击事件
        const val refuse = 2000
        const val agree = 2001
    }

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder<BankListEntity> {
        return ProMoneyHolder(
            LayoutInflater.from(mContext).inflate(R.layout.item_back_list, parent, false)
        )
    }

    class ProMoneyHolder(itemView: View) : BaseViewHolder<BankListEntity>(itemView) {
        override fun fillData(obj: BankListEntity, position: Int) {
            itemView?.apply {
                //                itemView.tv_data.text=
                ////提现类型 0.支付宝提现 1.银行卡直线
//                tv_title.text = obj.String.String


            }
        }

    }
}